package 线程池;

import java.util.concurrent.Executor;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

/**
 * Created with IntelliJ IDEA.
 * Description:ExecutorService类 使用Executors里的静态方法,隐式的new对象
 * User: lenovo
 * Date: 2022-09-27
 * Time: 10:00
 */
class Point{
    //平面直角坐标系
    public void Pointxy(double x,double y){

    }
    //极坐标系 p=asinα
    public void Pointra(double r,double a){

    }
}
public class Demo1 {
    public static void main(String[] args) {
        ExecutorService pool = Executors.newCachedThreadPool();
        pool.submit(new Runnable() {//线程池里会有一些线程来执行这里的任务
            @Override
            public void run() {

            }
        });
    }
}
